﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Weazel.Willows.Model
{
	public class ConnectorInterface
		: Weazel.Gezel.Model.AbstractEntity<object>
	{
		private TypeRegistry typeRegistry;
		public TypeRegistry TypeRegistry
		{
			get { return typeRegistry; }
		}

		private Type type;
		public Type Type
		{
			get { return type; }
		}

		public int BitWidth
		{
			get { return type.BitWidth; }
		}

		public ConnectorInterface(object parent, TypeRegistry typeRegistry, Type type, string name)
			: base(parent, name)
		{
			this.typeRegistry = typeRegistry;
			this.type = type;
		}
	}
}
